// friend store 

import {defineStore} from 'pinia'

// 比较数字大小
function compare(a, b) {
    return a - b;
}


// interface Friend {
//     id: '',
//     name: '',
//     gender: '',
//     phone: '',
//     province: '',
//     remark: '',
// }


export  interface IFriend {
    Id:string,
    uid: string,
    username: string,
    gender: string,
    province: string,
    phone: string,
    remark: string,
}



export const useFriendStore = defineStore('friend', {
    state: () => {
        return {
            friend: {} as IFriend
        }
    },
    actions:{
        setFriend(f:IFriend){
            this.friend = f;
        }
    }
})